import {
  handleRequest
} from './index'
import request from '@/utils/request'
import { commercialApiUrl } from '@/api/config'

//获取-标价分离书数据列表
export function getExport(query) {
  return request({
    url: commercialApiUrl + '/separate-quotation/quotation/export',
    method: 'post',
    data: query
  })
}

//获取-标价分离书数据列表
export function getQuotationList(query) {
  return handleRequest({
    url: '/separate-quotation/quotation/query',
    method: 'post',
    data: query
  })
}


//获取-标价分离书数据列表
export function getQuotationListCount(query) {
  return handleRequest({
    url: '/separate-quotation/quotation/query/count',
    method: 'post',
    data: query
  })
}



//新增-标价分离书数据列表
export function addQuotationList(query) {
  return handleRequest({
    url: '/separate-quotation/quotation',
    method: 'post',
    data: query
  })
}

//修改-标价分离书数据列表
export function editQuotationList(query) {
  return handleRequest({
    url: '/separate-quotation/quotation/update',
    method: 'post',
    data: query
  })
}
//删除-标价分离书数据列表
export function delQuotationList(query) {
  return handleRequest({
    url: '/separate-quotation/quotation/del',
    method: 'post',
    params: query
  })
}
//撤销-标价分离书数据列表
export function revokeQuotationList(query) {
  return handleRequest({
    url: '/separate-quotation/quotation/backout',
    method: 'get',
    params: query
  })
}
//废除-标价分离书数据列表
export function invalidQuotationList(query) {
  return handleRequest({
    url: '/separate-quotation/quotation/invalid',
    method: 'get',
    params: query
  })
}
//查看-标价分离书数据列表
export function checkQuotationList(query) {
  return handleRequest({
    url: '/separate-quotation/quotation/query',
    method: 'get',
    params: query
  })
}